<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="jquery-3.4.1.min.js"></script>
    <script>
        //get post
        // $.get(url,data,callback,dataType);
        // $.post(url,data,callback,dataType);

        $(document).ready(function(){
            $("button").click(function(){
                // $.get("https://autumnfish.cn/api/joke/list?num=1",function(data,status){
                //     alert(data.jokes[0]+":"+status);
                // })
                // $.post("https://autumnfish.cn/api/user/reg",{username:"bob857"},function(data,status){
                //     alert(data);
                // })
            })
        })
    </script>
</head>
<body>
    <button>你先点我</button>
</body>
</html>